<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 3、小王入职薪水10k,每年涨幅5%，10年后小王的月薪为多少，总收入为多少？

        var i = 10000
        var j = i * 12
        for(var k = 0 ; k < 9 ;k++){
            i *= (1 + 0.05)
            j += i * 12
        }
        console.log('月薪为' + i)
        console.log('总收入为' + j)
    </script>
</body>
</html>